substitute (something) for (something else)

Translations
заменить (что-то) на (что-то другое)
She substituted sugar for honey in the cake recipe.
Она заменила сахар на мед в рецепте торта.
Definitions
To replace one item, element, or component with another in a particular context or situation.